<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterXkUserFormatTime extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('xk_user', function (Blueprint $table) {
            $table->unsignedBigInteger("wid")->change();
            $table->dateTime('formatCreatedAt')->nullable(true)->comment('创建时间')->after("createdAt");
            $table->dateTime('formatUpdatedAt')->nullable(true)->comment('更新时间')->after("updatedAt");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('xk_user', function (Blueprint $table) {
            $table->dropColumn('formatCreatedAt');
            $table->dropColumn('formatUpdatedAt');
        });
    }
}
